package com.marveal.rabbit.common.serializer.impl;

import com.marveal.rabbit.api.Message;
import com.marveal.rabbit.common.serializer.Serializer;
import com.marveal.rabbit.common.serializer.SerializerFactory;

public class KryoSerializerFactory implements SerializerFactory {

    public static final KryoSerializerFactory INSTANCE = new KryoSerializerFactory();

    @Override
    public Serializer create() {
        return KryoSerializer.getKryoSerializer(Message.class);
    }
}
